import request from '@/utils/request'

// 查询巡更点配置列表
export function listWatch(query) {
  return request({
    url: '/electronicPatrolling/watch/list',
    method: 'get',
    params: query
  })
}

// 查询巡更点配置详细
export function getWatch(kwId) {
  return request({
    url: '/electronicPatrolling/watch/' + kwId,
    method: 'get'
  })
}

// 新增巡更点配置
export function addWatch(data) {
  return request({
    url: '/electronicPatrolling/watch',
    method: 'post',
    data: data
  })
}

// 修改巡更点配置
export function updateWatch(data) {
  return request({
    url: '/electronicPatrolling/watch',
    method: 'put',
    data: data
  })
}

// 删除巡更点配置
export function delWatch(kwId) {
  return request({
    url: '/electronicPatrolling/watch/' + kwId,
    method: 'delete'
  })
}
